package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.vo.Result;
import cn.huiyunche.base.service.vo.YeepayWebNotifyVo;
import cn.huiyunche.base.service.vo.YeepayWebPayLogVo;

import java.io.UnsupportedEncodingException;

/**
 * 网页支付接口
 *
 * @author hdy [Tuffy]
 */
public interface YeepayWebPayService {

    /**
     * 获取网页支付接口参数
     *
     * @param billId 账单id
     * @param p8_Url 回调地址
     * @return
     */
    Result<Object> init(Long billId, String p8_Url) throws UnsupportedEncodingException;

    /**
     * 添加日志
     *
     * @return
     */
    Result<Object> addLog(YeepayWebPayLogVo ywplv, Long billId) throws UnsupportedEncodingException;

    /**
     * 回调通知
     *
     * @param ywnv 回调函数参数
     * @return
     */
    Result<Object> notify(YeepayWebNotifyVo ywnv) throws UnsupportedEncodingException;

}
